#!/bin/sh
db_user="root"
db_passwd="root"
db_name="sf_indoor"
name="$(date +"%Y%m%d-%H:%M")"
echo "$name"
/usr/bin/mysqldump -u$db_user -p$db_passwd $db_name > /opt/backupMysql/$name.sql


#0 22 * * 6 /opt/backupMysql/backup_indoor.sh
#rm -rf $(find /opt/backupMysql/-mtime +3 -name "*.sql")

